﻿@model MvcApplication1.Models.KhachHangModel
@{
    ViewBag.Title = "DangKy";
    Layout = "~/Views/MasterPage/Main.cshtml";
}

@using (Html.BeginForm("DangKy", "TaiKhoan", FormMethod.Post, new { @class = "register-form" })){
    
    <div class="control-group">
        <label>Tên Đăng Nhập *</label>
        @Html.TextBoxFor(u => u.tenDangNhap)
        @Html.ValidationMessageFor(model => model.tenDangNhap)
    </div>
    <p class="error">@ViewBag.TrungTenDangNhapMessage</p>
    <div class="control-group">
        <label>Mật khẩu *</label>
        @Html.PasswordFor(u => u.matKhau)
    </div>
    <div class="control-group">
        <label>Họ tên</label>
        @Html.TextBoxFor(u => u.hoTen)
    </div>
    <div class="control-group">
        <label>Địa chỉ</label>
        @Html.TextBoxFor(u => u.diaChi)
    </div>
    <div class="control-group">
        <label>Email *</label>
        @Html.TextBoxFor(u => u.email)
    </div>
    <div class="control-group">
        <label>Số điện thoại</label>
        @Html.TextBoxFor(u => u.soDienThoai)
    </div>
    <div class="form-actions">
        <input type="submit" value="Đăng Ký" />
    </div>
}
